import Vue from "vue";
import VueRouter from "vue-router";
import HomeView from '@/components/HomeView'
import AboutView from '@/components/AboutView'
Vue.use(VueRouter)
//完成路由器配置,路由可以嵌套，使用children属性就能完成路由的嵌套
export default new VueRouter({
    routes:[
        {
            path:'/home',
            component:HomeView,
        },
        {
            path:'/about',
            component:AboutView,
        },
    ]
})